package com.ebei.admin.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_project")
public class SysProject extends Model<SysCompany> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "org_id", type = IdType.INPUT)
    private Integer orgId;

    @TableField("name")
    private String name;

    @TableField("project_seq")
    private String projectSeq;

    @TableField("project_type")
    private String projectType;

    @TableField("project_property")
    private Integer projectProperty;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    @TableField("del_flag")
    private String delFlag;

    @TableField("project_address")
    private String projectAddress;

    @TableField("detail")
    private String detail;

    @TableField("parent_id")
    private Integer parentId;

    @TableField("admin_account")
    private String adminAccount;

    @TableField("password")
    private String password;

    @TableField("company_id")
    private Integer companyId;

    @Override
    protected Serializable pkVal() {
        return this.orgId;
    }

}
